package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.model.User;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor 1
 * @date-Time: 2018/3/28 14:32
 * @description:
 */
public interface UserService {

  ServerResponse<User> login(String username, String password);

  ServerResponse<User> register(User user);

  ServerResponse<User> checkValid(String str);

  ServerResponse<User> getUserInfo(String username);

  ServerResponse<User> forgetGetQuestion(String username);

  ServerResponse<User> resetPassword(String passwordOld, String passwordNew, User user);

  ServerResponse<User> updateInformation(String email, String phone, String question, String answer, User user);

  ServerResponse<User> getInformation(String username);

  ServerResponse<User> logout(User user);

  ServerResponse<User> checkQuestionAndAnswer(String username, String question, String answer);

  ServerResponse<User> forgetResetPassword(String username, String passwordNew,String forgetToken);
}
